<?php

namespace app\models;

class Phone extends \yii\db\ActiveRecord{
    public static function tableName()
    {
        return '{{phone}}';
    }
    public function getUsers()
    {
        return $this->hasOne(Users::class, ['id' => 'user_id']);
    }
}